import { routes } from './routes';
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router';

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes,
});

//导航守卫
import { beforeEach, afterEach } from './permission';
router.beforeEach(beforeEach);
router.afterEach(afterEach);

export default router;
